package com.bwie.service.impl;

import com.bwie.bean.Company;
import com.bwie.bean.Loans;
import com.bwie.dao.CompanyDao;
import com.bwie.service.CompanyService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.HashMap;
import java.util.List;

@Service
public class CompanyServiceImpl implements CompanyService {

    @Resource
    private CompanyDao companyDao;

    @Override
    public List list(HashMap map) {
        return companyDao.list(map);
    }

    @Override
    public List<Loans> listlo() {
        return companyDao.listlo();
    }

    @Override
    public int add(Company company) {
        return companyDao.add(company);
    }
}















